﻿

using Forest.Lion.Domain.Contracts;
using Forest.Lion.Domain.Models;
using Forest.Lion.Web.Models;
namespace Forest.Lion.Web {
    public static class UserServicesExtensions {
        public static User GetUserFromIdentity(this IUserServices services, AppIdentity identity) {
            var user = services.GetAuthenticatedUser(identity.Name);
            return user;
        }
    }
}